<link href="../Public/Css/style.css" rel="stylesheet" type="text/css" />
<!-- 加载头部公共文件 -->
<include file="../Public/head" />
<script type="text/javascript" charset="utf-8" src="__PUBLIC__/Js/editor/kindeditor.js"></script> 
<script type="text/javascript"> 
    KE.show({ 
        id : 'content_1' //TEXTAREA输入框的ID 
   }); 
</script> 
<form method='post' action="__URL__/update" onsubmit="return validate()" enctype="multipart/form-data">
  <table width="98%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td width="8" height="8"><img src="../Public/images/index1_28.gif" width="8" height="39" /></td>
      <td width="99%" background="../Public/images/index1_40.gif">&nbsp;</td>
      <td width="8" height="8"><img src="../Public/images/index1_43.gif" width="8" height="39" /></td>
    </tr>
    <tr>
      <td background="../Public/images/index1_45.gif"></td>
      <td bgcolor="#FFFFFF" style="height:490px; vertical-align:top;">
      	<table width="100%" border="0" cellspacing="10" cellpadding="0">
          <tr>
            <td bordercolor="#DAEEF7">
            	<table width="100%"  border="0" cellpadding="4" cellspacing="1" bgcolor="#BBD3EB">
                  <tr bgcolor="#BBD3EB">
                    <td height="27" align="center" background="../Public/images/index1_72.gif" bgcolor="#FFFFFF" class="bold"> 修改文章 (<span class="require"></span>为必填字段)</td>
                  </tr>
                </table>			
				<div id="tab">
					<ul>
						<li>基本信息</li>
						<li>模板选项</li>
						<li>关键词优化</li>
					</ul>
				  <div>
				  	<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#BBD3EB" id="tb_list">
                          <tr bgcolor="#FFFFFF">
                            <td width="15%" height="26" align="center" class="right_align">标题：</td>
                            <td width="85%" colspan="5"  align="center" class="left_align">
                              <input name="title" type="text" id="title" value="{$vo.title}" size="60" v_type="require" v_errMsg="请填写标题！"><span class="require"></span>
                              <input name="id" type="hidden" id="id" value="{$vo.id}">
     						 <span class="f_remark">文章标题</span></td>
                          </tr>
                          <tr bgcolor="#FFFFFF">
                            <td height="26" align="center" class="right_align">链接：</td>
                            <td colspan="5"  align="center" class="left_align">
                              <input name="link" type="text" id="link" size="60" maxlength="255" value="{$vo.link}" >
                              <span class="f_remark">文章的跳转链接</span> </td>
                          </tr>
                          <tr bgcolor="#FFFFFF">
                            <td height="26" align="center" class="right_align"><span class="tRight">发布日期：</span></td>
                            <td align="center" class="left_align">
                              <input name="date" type="text" id="date" value="{$vo.date|dateFormat}" size="10" onclick="return fPopCalendar(this,date,'')" v_type="require" v_errMsg="请填写日期">
                              <span class="require"></span> </td>
                            <td align="center" class="right_align"><span class="tRight">作者</span>：</td>
                            <td align="center" class="left_align"><input name="author" type="text" id="author" value="{$vo.author}" size="12" ></td>
                            <td align="center" class="right_align">来源：</td>
                            <td align="center" class="left_align"><input name="src" type="text" id="src" value="{$vo.src}" ></td>
                          </tr>
                          <tr bgcolor="#FFFFFF">
                            <td height="26" align="center" class="right_align">图片：</td>
                            <td colspan="5"  align="center" class="left_align">
								<input name="image" type="file" id="image">
								<notempty  name="vo.img" >
									<a href="javascript:show_img('{$img_dir}{$vo.img}')" >
										<img src="/Public/Images/imgfolder.gif"   border="0" align="absmiddle" id="artc_img" style="cursor:hand ">图片预览
									</a>
								</notempty>                             
                              <span class="f_remark">文章缩略图，建议大小：150x120</span></td>
                          </tr>
                          <tr bgcolor="#FFFFFF">
                            <td height="26" align="center" class="right_align">排序：</td>
                            <td align="center" class="left_align">
                              <input name="sort" type="text" id="sort" value="{$vo.sort}" size="8">
                              <span class="f_remark"> 数字越小显示越靠前</span></td>
                            <td align="center" class="right_align">置顶：</td>
                            <td colspan="3" align="center" class="left_align">
                              <input name="top" type="checkbox" id="top4" value="1" <eq name="vo.top" value="1">checked</eq> >
                            </td>
                          </tr>
                          <tr bgcolor="#FFFFFF">
                            <td height="26" align="center" class="right_align">摘要：</td>
                            <td colspan="5" align="center" class="left_align"><textarea name="small_content"  style="width:80% " rows="6" id="small_content">{$vo.small_content}</textarea>
                                <span class="f_remark"><br>
                            如果为空，则自动从内容中截取100个汉字</span> </td>
                          </tr>
                          <tr bgcolor="#FFFFFF">
                            <td height="26" colspan="6" align="left"><textarea id="content_1" name="content" style="width:100%;height:300px;">{$vo.content}</textarea></td>
                          </tr>
                    </table>
				  </div>
					<div >
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#BBD3EB" id="tb_list">
                          <tr bgcolor="#FFFFFF">
                            <td width="15%" height="26" align="center" class="right_align"><span class="tRight">内容页模板</span>：</td>
                            <td  align="center" class="left_align">
							<select name="content_tpl_id" id="content_tpl_id">
                            	<option value="">--使用上级模板--</option>
								<volist name="content_tpl" id="v">
									<option value="{$v.id}" <eq name="v.id" value="$vo.content_tpl_id">selected</eq> >{$v.title}</option>
								</volist>
                            </select></td>
                          </tr>
                        </table>
					</div>
					<div>
						<table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#BBD3EB" id="tb_list">
                          <tr bgcolor="#FFFFFF">
                            <td width="15%" height="26" align="center" class="right_align"><span class="tRight">标题</span>：</td>
                            <td  align="center" class="left_align">
                              <input name="web_title" type="text" id="web_title" value="{$vo.web_title}" size="50">
                              <span class="f_remark">
      取代文章标题，显示在浏览器的标题栏上</span></td>
                          </tr>
                          <tr bgcolor="#FFFFFF">
                            <td height="26" align="center" class="right_align"><span class="tRight">网站关键词</span>：</td>
                            <td align="center" class="left_align">
                              <textarea name="web_key" cols="50" rows="6" id="web_key">{$vo.web_key}</textarea>
                              <span class="f_remark">用于搜索引擎优化</span></td>
                          </tr>
                          <tr bgcolor="#FFFFFF">
                            <td class="right_align"><span class="tRight">关键词描述</span>：</td>
                            <td  >
                              <textarea name="web_desc" cols="50" rows="6" id="web_desc">{$vo.web_desc}</textarea>
                              <span class="f_remark">用于搜索引擎优化</span> </td>
                          </tr>
                        </table>
					</div>
				</div>
			</td>
          </tr>
          <tr>
            <td align="center"><table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#CCCCCC">
              <tr>
                <td align="center" bgcolor="#FFFFFF">
					<div class="impBtn hMargin fLeft shadow" ><input name="btn_submit" type="submit" id="btn_submit" value="保存" class="save  imgButton" /></div>

                 	<div class="impBtn hMargin fLeft shadow" ><input type="button" name="Submit" value="返回" onclick="history.back()" class="return imgButton"/></div>
				  </td>
              </tr>
            </table></td>
          </tr>
        </table>
          <h3>&nbsp;</h3>
      </td>
      <td background="../Public/images/index1_47.gif"></td>
    </tr>
    <tr>
      <td width="8" height="8"><img src="../Public/images/index1_91.gif" width="8" height="8" /></td>
      <td background="../Public/images/index1_92.gif"></td>
      <td width="8" height="8"><img src="../Public/images/index1_93.gif" width="8" height="8" /></td>
    </tr>
  </table>
</form>


<!-- js 脚本 -->
<script language="javascript">
<!--
$(document).ready(function(){
	setListStyle("tb_list");
	var tab  = new TabControl('tab','tabNormal','tabFocus','tabHover');	
	
});


function validate()
{
	return validateForm();
}

//-->
</script>
<!-- 主页面结束 -->
<!-- 加载尾部公共文件 -->
<include file="../Public/foot" />